package com.fy56.platform.logistics.mapper;

import com.fy56.platform.logistics.common.mapper.IBaseMapper;
import com.fy56.platform.logistics.model.Company;

import java.util.List;

public interface CompanyMapper extends IBaseMapper<Company> {

    /**
     * 根据用户ID获取租户
     *
     * @param record
     * @return
     */
    List<Company> getCompanyListByUserId(Company record);

    List<Company> select(Company record);

    /**
     * 获取所有公司
     *
     * @return
     */
    List<Company> selectAllCompanys();

    List<Company> getCompanyListWithOutUserId(Company record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int insert(Company record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int insertSelective(Company record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    Company selectByPrimaryKey(Long id);

    Company selectById(Long id);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int updateByPrimaryKeySelective(Company record);

    /**
     *
     * @mbggenerated 2018-03-30
     */
    @Override
    int updateByPrimaryKey(Company record);

    Company selectByCode(String code);

    int updateCompanySelective(Company entity);
    List<Company> selectCompanyList(Company entity);

}